package com.example.study.ui.view

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.ScaffoldState
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import com.example.study.ui.viewmodel.ToolShowLIstViewModel

/**
*  created by 20300
*   on 2022/4/12
*   describe:
*/

@Composable
fun ToolShowListView(
    navCtrl:NavHostController,
    scaffoldState:ScaffoldState,
    viewModel:ToolShowLIstViewModel = ToolShowLIstViewModel()
){
    val viewState = viewModel.viewStates
    LazyColumn{
        items(viewState.toolList.size){ index ->
            val toolItemBean = viewState.toolList[index]
            ToolItemView(toolItemBean.toolName){
                navCtrl.navigate(toolItemBean.route)
            }
        }
    }
}



@Composable
fun ToolShowItemView(){

}